package com.uyayo.framework.captcha.model;

import java.awt.*;
import java.util.Arrays;
import java.util.List;

/**
 * 文字点击验证码
 * @author hfj
 * @date 2018/10/20
 */
public class ClickTextCaptcha extends Captcha {

    private static final long serialVersionUID = -7585643000072848584L;
    /**
     * 字
     */
    private String[] words;

    /**
     * 矩形集合
     */
    private List<Rectangle> rectangles;

    public String[] getWords() {
        return words;
    }

    public void setWords(String[] words) {
        this.words = words;
    }

    public List<Rectangle> getRectangles() {
        return rectangles;
    }

    public void setRectangles(List<Rectangle> rectangles) {
        this.rectangles = rectangles;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ClickTextCaptcha{");
        sb.append("words=").append(Arrays.toString(words));
        sb.append(", rectangles=").append(rectangles);
        sb.append('}');
        return sb.toString();
    }
}
